%h1 Pages

%table
  %tr
    %th Title
    %th Breadcrumb
    %th Is Home Page
    %th Is featured
    %th Operations
  -for page in @pages
    %tr
      %td= link_to page.title, [:admin, page]
      %td= page.breadcrumb
      %td= page.is_home
      %td= page.is_featured
      
      %td=link_to "Remove", [:admin,page], :method=>:delete, :confirm=>"Are you sure you want to delete page #{page.title}"
  
%h2 Operations
%p=link_to "Create new page", new_admin_page_url